<template>
   <van-empty
  :image="imagePath"
  description="404 Not Found"
>
 <van-button round type="primary" class="bottom-button" @click="toHome">返回主页</van-button>
</van-empty>

</template>

<script setup>
import { useRoute } from 'vue-router';
const imagePath = new URL('~/404.png', import.meta.url).href;
function toHome() {
  window.location.href = '/';
}
</script>

<style>

</style>